package com.imooc.distributedemo.jmm;

public class BankVersion2 {

    public static void main(String[] args) {
        TicketWindowRunnable wr = new TicketWindowRunnable();
        Thread thread1 = new Thread(wr,"柜台1");
        Thread thread2 = new Thread(wr,"柜台2");
        Thread thread3 = new Thread(wr,"柜台3");

        thread1.start();
        thread2.start();
        thread3.start();
    }
}
